package com.lukk.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lukk.pojo.PotentialLevel;
import com.lukk.service.IPotentialLevelService;

/**
 * 
 * PotentialLevelController 下午7:50:18 Copyright zhaocj Inc. All Rights reserved.
 * alldios@outlook.com
 *
 */
@Controller
@RequestMapping("/potentialLevel")
public class PotentialLevelController {
	@Autowired
	private IPotentialLevelService potentialLevelService;

	public IPotentialLevelService getPotentialLevelService() {
		return potentialLevelService;
	}

	public void setPotentialLevelService(IPotentialLevelService potentialLevelService) {
		this.potentialLevelService = potentialLevelService;
	}
   /**
    * 查询工人的意向级别
    * @param potentialLevel
    * @return
    */
	@RequestMapping("/select")
	public @ResponseBody List<PotentialLevel> select(PotentialLevel potentialLevel) {
		return potentialLevelService.selectByBean(potentialLevel);
	}

}
